<%--
  Created by IntelliJ IDEA.
  User: 李重恩
  Date: 2024/4/7
  Time: 11:54
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>添加员工</title>
    <link href="resource/css/style.css" rel="stylesheet" type="text/css"/>
    <link href="resource/css/select.css" rel="stylesheet" type="text/css"/>
    <script type="text/javascript" src="resource/js/jquery-2.1.0.min.js"></script>
    <script type="text/javascript" src="resource/js/jquery.js"></script>
    <script type="text/javascript" src="resource/js/jquery.idTabs.min.js"></script>
    <script type="text/javascript" src="resource/js/select-ui.min.js"></script>
    <script type="text/javascript" src="resource/editor/kindeditor.js"></script>

    <script type="text/javascript">
        KE.show({
            id: 'content7'
        });
    </script>
    <script>
        $(function (){
            $(".select1").uedSelect({
                width: 345
            });
            $(".select2").uedSelect({
                width: 167
            });
            $(".select3").uedSelect({
                width: 100
            });

            $.ajax({
                url: "ceoGetAllDepts",
                type: "post",
                dataType: "json",
                success: function (data) {
                    $(".select2").empty();//清除
                    $(".select2").append("<option value=\"0\">==请选择类型==</option>");
                    $.each(data, function(index, depts){
                        $(".select2").append("<option value="+depts.did+">"+depts.dname+"</option>")
                    });
                }
            });




        })
    </script>



</head>

<body>

<div class="place">
    <span>位置：</span>
    <ul class="placeul">
        <li><a href="#">首页</a></li>
        <li><a href="#">商品添加</a></li>
    </ul>
</div>

<div class="formbody">

    <div id="usual1" class="usual">

        <div id="tab1" class="tabson">
            <form action="/ceoadduser" method="post" enctype="multipart/form-data">
                <%--                <input type="hidden" name="method" value="addGoods"/>--%>
                <ul class="forminfo">
                    <li><label>角色<b>*</b></label>
                        <div class="vocation">
                            <select class="select1" name="rid">
                                <option value="1">员工</option>
                                <option value="2">经理</option>
                            </select>
                        </div>
                    </li>
                    <li><label>部门<b>*</b></label>
                        <div class="vocation">
                            <select class="select2" name="did">
                                <option value="0">==请选择类型==</option>
                            </select>
                        </div>
                    </li>

                    <li><label>用户名称<b>*</b></label>
                        <input name="uname" type="text" class="dfinput" style="width:518px;"/>
                    </li>
                    <li><label>用户的密码<b>*</b></label>
                        <input name="password" type="text" class="dfinput" style="width:518px;"/>
                    </li>

                    <li><label>性别<b>*</b></label>
                        <div class="vocation">
                            <select class="select3" name="sex">
                                <option value="男">男</option>
                                <option value="女">女</option>
                            </select>
                        </div>
                    </li>
                    <li><label>年龄<b>*</b></label>
                        <input name="age" type="age" class="dfinput" style="width:518px;"/>
                    </li>
                    <li><label>生日<b>*</b></label>
                        <input name="date" type="date" class="dfinput" style="width:518px;"/>
                    </li>
                    <li><label>邮箱<b>*</b></label>
                        <input name="email" type="text" class="dfinput" style="width:518px;"/>
                    </li>
                    <li><label>手机号<b>*</b></label>
                        <input name="phone" type="text" class="dfinput" style="width:518px;"/>
                    </li>
                    <li><label>用户的头像<b>*</b></label>
                        <input name="file" type="file" class="dfinput" style="width:518px;"/>
                    </li>
                    <li><label>住址<b>*</b></label>
                        <input name="address" type="text" class="dfinput" style="width:518px;"/>
                    </li>

                </ul>
                <input name="" type="submit" class="loginbtn" value="添加"/>
            </form>

        </div>

    </div>

    <script type="text/javascript">
        $("#usual1 ul").idTabs();
    </script>

    <script type="text/javascript">
        $('.tablelist tbody tr:odd').addClass('odd');
    </script>


</div>

</body>
</html>
